package camp.android.cookbook;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class RecipeBear extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.cookbook);
        
        Button button = (Button) findViewById(R.id.add_recipe);
        button.setOnClickListener(new OnClickListener() {
        	public void onClick(View v) 
        	{
        		Intent i = new Intent(getApplicationContext(), NewRecipe.class);
        		startActivity(i);
        	}
        });
        /*button.setOnClickListener(new OnClickListener()   //should start creating a new recipe
        {
			
        	@Override
			public void onClick(View v)
			{
				Recipe r = new Recipe("POOOP", "A delicious treat");
				r.addIngredient("POOP", "LOTS");
				r.addStep("POOP SOME")
				;
				r.addStep("wipe");
				r.addIngredient("more food", "enough");
				r.addNote("Really great!");
				r.addNote("Could use a little more salt.");
				Intent i = new Intent(getApplicationContext(), RecipeView.class);
				i.putExtra("recipe", r);
				startActivity(i);
			}
        });*/
    }
}